package com.samehope.ar.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @Description: 增加线路参数
 * @Author: ZhangLuo
 * @Email: 1946430@qq.com
 */
@Data
public class RouteAndParam {

    @Length(min = 1, max = 64, message = "线路名称长度限制在1-64")
    @NotBlank(message = "线路名称不能为空")
    private String routeName;

    @Valid
    @NotEmpty(message = "点位集合不能为空")
    private List<RoutePointParam> points;

    private Integer isTemp;

}